home *** CD-ROM | disk | FTP | other *** search
- Path: holly.ACNS.ColoState.EDU!not-for-mail
- From: corbyh@holly.ACNS.ColoState.EDU (Corby S. Hudnall)
- Newsgroups: comp.infosystems.www.authoring.cgi,comp.lang.c++
- Subject: Form Processing with C++ (hexidecimal prob)
- Date: 18 Jan 1996 18:40:24 -0700
- Organization: Colorado State University, Fort Collins, CO 80523
- Message-ID: <4dmsq8$3gse@holly.ACNS.ColoState.EDU>
- NNTP-Posting-Host: holly.acns.colostate.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hello World
-
- I am developing a class to process FORM input from html documents. My
- question is this, when the form is submitted, it is escaped with
- hexadecimal characters. I have a list of the escape codes so do I code
- the class to look for these particular hexadecimal codes, OR is there
- some way to directly translate the escaped hexedecimal codes back to
- their ASCII values? I would prefer the latter since that would handle
- unknown cases. I'm also not sure that all browsers sumbit the escaped
- form the same way. That could represent huge problems down the road.
- I'm pretty sure that I should just be able to add 'a' or something
- like that to the escaped characters to find their true value but I admit
- that I don't know how to go about that. I've tried looking in some other
- code that processes forms but I haven't had much luck translating what
- was going on. All I _can_ tell is that those code segments are adding
- something to get the true value and not searching a table of known codes.
- What function does C++ or C support, like hex() or something, that would
- return the ASCII equivalent for an escape code. All help and suggestion is
- greatly appreciated. If there are any good books or tutorials out there
- regarding C/C++ and CGI programming, I'd like to know about them as well.
-
- Thanks in Advance,
-
- // ------------ BEGIN SIGNATURE ---------------
- #include <iostream.h>
- void main()
- {
- cout<<"\aName:\tCorby S. Hudnall\n";
- cout<<"School:\tColorado State University\n";
- cout<<"EMail\tcorbyh@holly.colostate.edu\n";
- cout<<"URL\thttp://holly.colostate.edu/~corbyh/\n";
- }
- // ------------- END SIGNATURE ----------------
-
-